#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>

int main()
{
	printf("The pid of this thread is: %d\n", getpid());
	
	int ipid = fork();

	sleep(1);

	printf("pid=%d\n", ipid);

	if(ipid!=0) printf("Father process pid is: %d\n", getpid());
	else printf("Child process pid is: %d\n", getpid());

	sleep(30);
}
